<%-- 
    Document   : Menu
    Created on : May 31, 2014, 11:17:53 AM
    Author     : Tu Nguyen
--%>

<%@page import="DTO.UserList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Đặt vé Online</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="temp.jsp">Đặt vé</a></li>
            <li><a href="TTDatVe.jsp">Thông tin vé</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="DangKy.jsp">Đăng ký</a></li>
            <li class="">
                <%  HttpSession ss1 = request.getSession(); 
             if(ss1.getAttribute("SSUser")!= null)
             { 
                 UserList user = (UserList)ss1.getAttribute("SSUser");
                  
                 %><a href="CLogin?p=btnOut">Đăng xuất(<%=user.UserName %>)</a><%
            }else
             {
                 %><a href="Login.jsp">Đăng nhập</a><%
            }%>
             </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>